home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5262 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: canopus.cc.umanitoba.ca!natewild
  2. From: natewild@mbnet.mb.ca (Nathan T. Wild)
  3. Newsgroups: comp.lang.c++
  4. Subject: Dynamic Array Allocation With new/delete
  5. Date: Fri, 02 Feb 1996 02:33:18 -0500
  6. Organization: WankerNET - Digital TimeWasters Inc.
  7. Message-ID: <+4bExc9nXQoO083yn@mbnet.mb.ca>
  8. NNTP-Posting-Host: access.mbnet.mb.ca
  9. Originator: natewild@access.mbnet.mb.ca
  10.  
  11. Please forgive me if this is a frequent question, if so... please fell
  12. free to direct me to a FAQ that answers it.
  13.  
  14. I want to create an array to objects at run time, but I won't know the
  15. number of objects in advance.
  16.  
  17. I know I could malloc (Num * sizeof(TObject)) but I would prefer to use
  18. new/delete not malloc/free.  
  19.  
  20. I don't have access to this newsgroup, so if possible, please respond via
  21. email.  I will post a follow up if I get good responses...
  22.  
  23. Thanks in advance...
  24.      
  25.  
  26. |--------------------------------------------------------------------|
  27. | ooooO (``)   (``) Ooooo | Nathan T. Wild                           | 
  28. | (   ) )  (   )  ( (   ) | natewild@mbnet.mb.ca                     |
  29. | )  (  (   ) (   ) )  (  | ftp://ftp.mbnet.mb.ca/pub/natewild       |
  30. | (__)  ooooO Ooooo (__)  | http://www.mbnet.mb.ca/~natewild         |
  31. |--------------------------------------------------------------------|
  32.